package com.iims.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iims.finance.domain.CmisCwCollection;
import com.iims.finance.vo.resp.CmisCwCollectionDetailVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author fanpei
 * @date 2021/7/9 22:28
 */
public interface CmisCwCollectionMapper extends BaseMapper<CmisCwCollection> {
    /**
     * 条件筛选收款
     *
     * @param collection
     * @return
     */
    List<CmisCwCollectionDetailVo> selectCmisCwCollectionList(CmisCwCollection collection);

    /**
     * 查询合同所属收款列表
     * @param contractId
     * @return
     */
    List<CmisCwCollectionDetailVo> selectContractCmisCwCollectionList(@Param("contractId") Long contractId);

    /**
     * 查询收款详情
     *
     * @return
     */
    CmisCwCollectionDetailVo selectCmisCwCollectionDetail(@Param("collectId") Long collectId);
}
